﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace ERP.Team.ProductionSystem
{
    /// <summary>
    /// 设备类型设置实体
    /// </summary>
    public class DeviceType : Entity<int>// 主键ID
    {
        /// <summary>
        /// 设备类型编码
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string DeviceCode { get; set; }

        /// <summary>
        /// 设备类型名称
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string DeviceName { get; set; }

        /// <summary>
        /// 是否启用（建议改为布尔类型）
        /// </summary>
        [Required]
        [MaxLength(30)]
        [Column("int")] // 对应数据库中的保留字列名
        public string IsEnabled { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string Remark { get; set; }
    }
}
